﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F1B RID: 3867
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicEnableTalentCsReq : IMessage<RogueMagicEnableTalentCsReq>, IMessage, IEquatable<RogueMagicEnableTalentCsReq>, IDeepCloneable<RogueMagicEnableTalentCsReq>, IBufferMessage
	{
		// Token: 0x17003126 RID: 12582
		// (get) Token: 0x0600AD88 RID: 44424 RVA: 0x001D59C8 File Offset: 0x001D3BC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicEnableTalentCsReq> Parser
		{
			get
			{
				return RogueMagicEnableTalentCsReq._parser;
			}
		}

		// Token: 0x17003127 RID: 12583
		// (get) Token: 0x0600AD89 RID: 44425 RVA: 0x001D59CF File Offset: 0x001D3BCF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicEnableTalentCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003128 RID: 12584
		// (get) Token: 0x0600AD8A RID: 44426 RVA: 0x001D59E1 File Offset: 0x001D3BE1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicEnableTalentCsReq.Descriptor;
			}
		}

		// Token: 0x0600AD8B RID: 44427 RVA: 0x001D59E8 File Offset: 0x001D3BE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnableTalentCsReq()
		{
		}

		// Token: 0x0600AD8C RID: 44428 RVA: 0x001D59F0 File Offset: 0x001D3BF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnableTalentCsReq(RogueMagicEnableTalentCsReq other) : this()
		{
			this.talentId_ = other.talentId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600AD8D RID: 44429 RVA: 0x001D5A15 File Offset: 0x001D3C15
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnableTalentCsReq Clone()
		{
			return new RogueMagicEnableTalentCsReq(this);
		}

		// Token: 0x17003129 RID: 12585
		// (get) Token: 0x0600AD8E RID: 44430 RVA: 0x001D5A1D File Offset: 0x001D3C1D
		// (set) Token: 0x0600AD8F RID: 44431 RVA: 0x001D5A25 File Offset: 0x001D3C25
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TalentId
		{
			get
			{
				return this.talentId_;
			}
			set
			{
				this.talentId_ = value;
			}
		}

		// Token: 0x0600AD90 RID: 44432 RVA: 0x001D5A2E File Offset: 0x001D3C2E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicEnableTalentCsReq);
		}

		// Token: 0x0600AD91 RID: 44433 RVA: 0x001D5A3C File Offset: 0x001D3C3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicEnableTalentCsReq other)
		{
			return other != null && (other == this || (this.TalentId == other.TalentId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600AD92 RID: 44434 RVA: 0x001D5A6C File Offset: 0x001D3C6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.TalentId != 0U)
			{
				num ^= this.TalentId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600AD93 RID: 44435 RVA: 0x001D5AAB File Offset: 0x001D3CAB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600AD94 RID: 44436 RVA: 0x001D5AB3 File Offset: 0x001D3CB3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600AD95 RID: 44437 RVA: 0x001D5ABC File Offset: 0x001D3CBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.TalentId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.TalentId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600AD96 RID: 44438 RVA: 0x001D5AF0 File Offset: 0x001D3CF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.TalentId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TalentId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600AD97 RID: 44439 RVA: 0x001D5B2E File Offset: 0x001D3D2E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicEnableTalentCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.TalentId != 0U)
			{
				this.TalentId = other.TalentId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600AD98 RID: 44440 RVA: 0x001D5B5F File Offset: 0x001D3D5F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600AD99 RID: 44441 RVA: 0x001D5B68 File Offset: 0x001D3D68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.TalentId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400466A RID: 18026
		private static readonly MessageParser<RogueMagicEnableTalentCsReq> _parser = new MessageParser<RogueMagicEnableTalentCsReq>(() => new RogueMagicEnableTalentCsReq());

		// Token: 0x0400466B RID: 18027
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400466C RID: 18028
		public const int TalentIdFieldNumber = 3;

		// Token: 0x0400466D RID: 18029
		private uint talentId_;
	}
}
